﻿/*
 * Copyright (c) 2012 Loren M Halvorson
 * This source is subject to the Microsoft Public License (Ms-PL).
 * See http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx.
 * All other rights reserved.
 * Portions copyright 2002-2007 The Genghis Group (http://www.genghisgroup.com/)
 */

using System;

using Genghis;
using clp = Genghis.CommandLineParser;

namespace ScrapeDocs
{
    [clp.ParserUsage("XmlPreprocessor Documentation Scraper")]
    public class CommandLine : CommandLineParser
    {
        [clp.ValueUsage("(/u) User Name", Optional = false, MatchPosition = false, AlternateName1 = "u")]
        public string user = null;

        [clp.ValueUsage("(/p) Password", Optional = true, MatchPosition = false, AlternateName1 = "p")]
        public string password = null;

        [clp.ValueUsage("(/b) Blog", Optional = false, MatchPosition = false, AlternateName1 = "b")]
        public string blog = null;

        [clp.ValueUsage("(/o) Output directory", Optional = true, MatchPosition = false, AlternateName1 = "o")]
        public string output = "docs";

        [clp.ValueUsage("(/t) Template path (omit to use built-in template)", Optional = true, MatchPosition = false, AlternateName1 = "t")]
        public string template = null;

        [clp.ValueUsage("Number of posts to pull", Optional = true, MatchPosition = false)]
        public int posts = 50;

        [clp.ValueUsage("Blog URL", Optional = true, MatchPosition = false)]
        public string url = "https://www.codeplex.com/site/metaweblog/";
    }
}